<template>
    <div class="search-container">
        <div>
            <h1>Search Github UserName</h1>
            <input type="text" placeholder="请输入关键字" v-model="searchName">
            <button @click="$EventBus.$emit('search',searchName)">搜素</button>
        </div>
    </div>
</template>

<script>
export default {
    name: "UserView",
    data(){
        return {
            searchName: ''
        }
    },
    
}
</script>

<style>
.search-container{
    height: 300px;
    background-color: #ccc;
    display: flex;
    align-items: center;
}
.search-container>div{
    padding: 0 50px;
}
</style>